package com.world.business.area.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.world.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 地区
 *
 * @author 邓驴
 * @date 2023/05/13 15:40
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Area对象", description = "地区")
public class Area extends BaseEntity {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("父类ID")
    private Long parentId;

    @ApiModelProperty("地区名称")
    private String areaName;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("地区类型")
    private String areaType;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("创建者id")
    private Long createById;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("更新者")
    private String updateBy;

    @ApiModelProperty("更新者id")
    private Long updateById;

    @ApiModelProperty("删除状态 0:已删 1:未删")
    private Integer delFlag;
}
